<?php
namespace app\validate\admin;

use think\Validate;

class WebsiteValidate extends Validate{

    public $rule = [
        'name' => 'require',
        'domain' => 'require',
        'desc' => 'require',
        'copyright' => 'require',
    ];

    public $message = [
        'name.require' => '网站名称不能为空',
        'domain.require' => '网址不能为空',
        'desc.require' => '描述不能为空',
        'copyright.require' => '版权不能为空',
    ];
}
